export function setToken(token) {
    window.localStorage.setItem('token', token);
}

export function getToken() {
    return window.localStorage.getItem('token');
}

export function setRegion(region) {
    window.localStorage.setItem('region',
        JSON.stringify(region));
}

export function getRegion() {
    return JSON.parse(window.localStorage.getItem('region'));
}

export function setUesrId(id) {
    window.localStorage.setItem('user_id', id);
}

export function setUesrInfo(info) {
    window.localStorage.setItem('user_info', info);
}
